public class DTCsvFile
| Constructor and Description |
|---|
DTCsvFile(BBjString filename!)Constructor for reading from existing file |
DTCsvFile(StringBuilder content!)Constructor for reading from existing file content |
DTCsvFile(BBjString baseFileName$, BBjVector colHead!)Constructor for creating new file with column headers |
| Modifier and Type | Method and Description |
|---|---|
void | close() |
HashMap | getColumnLetterMap() |
BBjInt | getColumnNumber(BBjString fieldname!) |
BBjVector | getColumns() |
BBjString | getErrMsg() |
BBjString | getField(BBjString fieldname!) |
BBjString | getField(BBjString fieldname!, boolean trim!) |
BBjString | getField(BBjNumber columnNumber!) |
BBjString | getField(BBjNumber columnNumber!, boolean trim!) |
BBjString | getField(BBjInt columnNumber!) |
BBjString | getField(BBjInt columnNumber!, boolean trim!) |
BBjString | getFileName()Returns defined csv file name |
BBjVector | getNextRow() |
BBjVector | getNextRow(BBjString row!) |
BBjString | getNextRowString() |
BBjNumber | getPercent() |
BBjString | getTitleRow() |
HashMap | getTitles() |
void | writeRow(BBjVector row!)Writes a row to the file |
public DTCsvFile(BBjString filename!)Constructor for reading from existing file
filenamepublic DTCsvFile(StringBuilder content!)Constructor for reading from existing file content
StringBuilder content!public DTCsvFile(BBjString baseFileName$, BBjVector colHead!)Constructor for creating new file with column headers
BBjString baseFileName$, optionalBBjVector colHead!public void close()
public HashMap getColumnLetterMap()public BBjInt getColumnNumber(BBjString fieldname!)public BBjVector getColumns()public BBjString getErrMsg()public BBjString getField(BBjNumber columnNumber!)public BBjString getField(BBjNumber columnNumber!, boolean trim!)public BBjString getField(BBjInt columnNumber!)public BBjString getField(BBjInt columnNumber!, boolean trim!)public BBjString getFileName()Returns defined csv file name
public BBjVector getNextRow()public BBjString getNextRowString()public BBjNumber getPercent()public BBjString getTitleRow()public HashMap getTitles()public void writeRow(BBjVector row!)
Writes a row to the file
BBjVector row!